<template>
  <el-dialog draggable :title="title" width="70%" v-bind="$attrs" v-model="showVideoModal">
    <div  class="w-full">
      <sc-video v-if="showVideoModal" :src="src" autoplay loop ></sc-video>
    </div>
  </el-dialog>
</template>

<script>
import ScVideo from "@/components/scVideo/index.vue";
export default {
  name: "video-popup",
  components: {ScVideo},
  props:{
    src:{
      type: String,
      default: ""
    },
    title:{
      type: String,
      default: ""
    }
  },
  data() {
    return {
      showVideoModal: true
    }
  },
}
</script>

<style scoped>

</style>
